<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>修改</h2>
    </div>
    <ul class="tab-nav nav">


        <li class="current"><a href="javascript:void(0)">基本信息</a></li>


    </ul>
    
    <form action="{:U()}" method="post" class="form-horizontal">
        <input type="hidden" name="mid" value="$vo[mid]"/>
    <div class="tab-content">
        <div class="form-item">
            <label class="item-label">名称<span class="check-tips">（名称必须填写）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$vo.title}">
                <input type="hidden" name="id" value="{$vo.id}" />
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">英文名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="egname" value="{$vo.egname}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">职位<span class="check-tips">（职位必须选择）</span></label>
            <div class="controls">
				<select name="zwid" style="width:190px;">
					<option value="">请选择职位</option>
					<volist name="typelister" id="typelist">
						<option value="{$typelist.id}" <if condition="$vo.zwid eq $typelist['id']">selected="selected"</if>>{$typelist.html}{$typelist.title}</option>
					</volist>
				</select>
			</div>
        </div>


        

        <div class="form-item">
            <label class="item-label">排序</label>
            <div class="controls">
                <input type="text" class="text input-large" name="sort" value="{$vo.sort}">
            </div>
        </div>





        <div class="form-item">
            <label class="item-label">内容</label>
            <div class="controls">
                <label class="textarea">
                    <textarea name="content">{$vo.content}</textarea>
                    {:hook('adminArticleEdit', array('name'=>content,'value'=>$vo['content']))}
                </label>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">发布时间</label>
            <div class="controls">
                <input type="text" class="text input-large" name="create_time" id="deadline2" value="{$vo.create_time|time_format='Y-m-d H:i'}">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </div>

    </form>
</block>

<block name="script">
<include file="Public:datetime" />
    <script type="text/javascript">
	
		$('.tab-nav li').click(function(){
			$(this).attr('class','current')
						.siblings().attr('class','');
			var n_index=$('.tab-nav li').index(this);
				$('.tab-content').eq(n_index).show()
							 .siblings().hide();
		});
	
        //导航高亮
        highlight_subnav('{:U('Department/index')}');
		
		$('#deadline').datetimepicker({
        format: 'yyyy-mm-dd hh:ii',
        language:"zh-CN",
        minView:2,
        autoclose:true
    });
		$('#deadline2').datetimepicker({
        format: 'yyyy-mm-dd hh:ii',
        language:"zh-CN",
        minView:2,
        autoclose:true
    });
    </script>
</block>
